package com.dao;

import com.entity.Operator;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

//@Repository("operatorMapper")
public interface OperatorMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Operator record);

    int insertSelective(Operator record);

    Operator selectByPrimaryKey(@Param(value = "id") Integer id);
    Operator selectByMobile(@Param(value = "mobile") String mobile);

    int updateByPrimaryKeySelective(Operator record);

    int updateByPrimaryKey(Operator record);
    String selectByUsernameAndPassword(@Param("mobile") String mobile);
   List<Operator> selectAllOperator();
   Operator selectOneOperatorById(@Param("operatorId") Integer operatorId);
}